    <div id="list-product">
        <div class="header">
            <div class="headerleft">
            </div>
            <div class="headertitle">
                            <?php
                            $allItems = $this->allItems;
                            $currentPage = $this->currentPage;

                            if ($currentPage) {
                                // check exists parent
                                if ($currentPage['all_parent']) {
                                    $allParent = explode(',', $currentPage['all_parent']);
                                    if (isset($allParent[0])) {
                                        $allCategory = $this->allCategory;
                                        foreach($allParent as $parentID):
                                            $parent = $allCategory[$parentID];
                                            // check to ignore root
                                            if ($parent['left'] != 1) {
                                            ?>
                                                <a href="<?php echo BASE_PATH . '/' . CURR_APP ?>?pid=<?php echo $parent['category_id']?>"><?php echo $parent['admin_title'];?></a> >> 
                                            <?php
                                            }
                                        endforeach;
                                    }
                                    echo $currentPage['admin_title'];
                                }
                            }
                            ?>

            </div>
            <div class="headerright">
            </div>
        </div>
        <div class="content">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td class="centerleft"></td>
                    <!--td class="centercontent" style="background:#a7d0f0;"-->
                    <td class="centercontent">
<?php
if ($this->access) {

?>
<?php
                $template = $this->template;
                if (!$template) {
?>
                            <center>
                            <div  style="width:580px;">
                            <?php
                            if (isset($allItems[0])) {
                                $i = 0;
                                echo '<ol>';
                                foreach($allItems as $item):
                                ?>
                                <!--div  class="border-bottom" style="text-align:justify; padding:5px;"-->
                                    <!--div class="" style="text-align:justify;height:130px;padding:20px 20px 0px 10px;"-->
                                    <?php
                                    $path = pathinfo($item['item_image'], PATHINFO_DIRNAME);
                                    $fileName = pathinfo($item['item_image'], PATHINFO_BASENAME);
                                    ?>
                                        
                                            <li style="color:#619ecb;text-align:justify; padding:5px;list-style-type:circle">
                                                <a style="color:#619ecb;" href="<?php echo BASE_PATH . '/' . CURR_APP ?>/index.php/index/index/detail?pid=<?php echo $item->category_id; ?>&id=<?php echo $item->item_id; ?>"><?php echo $item['item_title'];?></a>
                                            </li>
                                    <!--/div-->
                                <!--/div-->
                                <?php
                                $i++;
                                endforeach;
                                
                                echo '</ol>';
                                echo '<div style="clear:both;"></div>';
                                echo $this->paging;
                            } // if items
                            ?>
                                <div style="clear:both;"></div>
                            </div>
                            </center>
  <?php
                } // if template
                else {
                    include($template);
                }
?>                    
<?php
    //} // if has item
} else { // access
    include('login.phtml');
}
?>
</td>
                    <td class="centerright"></td>
                </tr>
            </table>
        </div>
        <div class="footer">
            <div class="footerleft">
            </div>
            <div >
            </div>
            <div class="footerright">
            </div>
        </div>
    </div>
